home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Human Interface Toolbox / PackageTool / MakeFile next >
Encoding:
Makefile  |  2000-09-28  |  4.3 KB  |  105 lines  |  [TEXT/MPS ]

  1. # /*
  2. #     File: MakeFile
  3. #     
  4. #     Description:
  5. #         MPW make command file for generating build commands.
  6. #     Copyright:
  7. #         © Copyright 1999 Apple Computer, Inc. All rights reserved.
  8. #     
  9. #     Disclaimer:
  10. #         IMPORTANT:  This Apple software is supplied to you by Apple Computer, Inc.
  11. #         ("Apple") in consideration of your agreement to the following terms, and your
  12. #         use, installation, modification or redistribution of this Apple software
  13. #         constitutes acceptance of these terms.  If you do not agree with these terms,
  14. #         please do not use, install, modify or redistribute this Apple software.
  15. #         In consideration of your agreement to abide by the following terms, and subject
  16. #         to these terms, Apple grants you a personal, non-exclusive license, under Apple’s
  17. #         copyrights in this original Apple software (the "Apple Software"), to use,
  18. #         reproduce, modify and redistribute the Apple Software, with or without
  19. #         modifications, in source and/or binary forms; provided that if you redistribute
  20. #         the Apple Software in its entirety and without modifications, you must retain
  21. #         this notice and the following text and disclaimers in all such redistributions of
  22. #         the Apple Software.  Neither the name, trademarks, service marks or logos of
  23. #         Apple Computer, Inc. may be used to endorse or promote products derived from the
  24. #         Apple Software without specific prior written permission from Apple.  Except as
  25. #         expressly stated in this notice, no other rights or licenses, express or implied,
  26. #         are granted by Apple herein, including but not limited to any patent rights that
  27. #         may be infringed by your derivative works or by other works in which the Apple
  28. #         Software may be incorporated.
  29. #         The Apple Software is provided by Apple on an "AS IS" basis.  APPLE MAKES NO
  30. #         WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
  31. #         WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  32. #         PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
  33. #         COMBINATION WITH YOUR PRODUCTS.
  34. #         IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
  35. #         CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  36. #         GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  37. #         ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION
  38. #         OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT
  39. #         (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN
  40. #         ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  41. #     Change History (most recent first):
  42. #         Fri, Dec 17, 1999 -- created
  43. # */
  44.  
  45. PPCObjects =    :obj:PackageTool.c.ppc ∂
  46.             :obj:SimplePrefs.c.ppc ∂
  47.             :obj:PackageUtils.c.ppc ∂
  48.             :obj:PackageWindow.c.ppc ∂
  49.             :obj:Utilities.c.ppc
  50.  
  51. CCppc  = MrC -w 35 -align power -proto strict -d TARGET_API_MAC_CARBON=1
  52.  
  53. RezFiles = PackageTool.r
  54. Resources = {RezFiles} PackageTool.rsrc
  55.  
  56. # resources
  57.  
  58. PackageTool ƒƒ {Resources}  {PPCObjects}
  59.     Rez -i "{RIncludes}" -o PackageTool {RezFiles}
  60.  
  61. PackageTool ƒƒ {Resources} {PPCObjects}
  62.     PPCLink -o PackageTool -main main ∂
  63.         {PPCObjects} ∂
  64.         {SharedLibraries}CarbonLib
  65.  
  66. # bundle
  67.  
  68. PackageTool ƒƒ {Resources} {PPCObjects}
  69.     SetFile -t APPL -c pTeZ -a iB PackageTool
  70.  
  71. ### PackageTool build commands
  72. :obj:PackageTool.c.ppc ƒ  PackageTool.c PackageTool.h :obj:make.com
  73.     {CCppc} PackageTool.c -o :obj:PackageTool.c.ppc
  74.  
  75.  
  76. ### Utilities build commands
  77. :obj:Utilities.c.ppc ƒ  Utilities.c Utilities.h :obj:make.com
  78.     {CCppc} Utilities.c -o :obj:Utilities.c.ppc
  79.  
  80.  
  81. ### SimplePrefs build commands
  82. :obj:SimplePrefs.c.ppc ƒ  SimplePrefs.c SimplePrefs.h Utilities.h :obj:make.com
  83.     {CCppc} SimplePrefs.c -o :obj:SimplePrefs.c.ppc
  84.  
  85.  
  86. ### PackageUtils build commands
  87. :obj:PackageUtils.c.ppc ƒ  PackageUtils.c PackageUtils.h :obj:make.com
  88.     {CCppc} PackageUtils.c -o :obj:PackageUtils.c.ppc
  89.  
  90.  
  91. ### PackageWindow build commands
  92. :obj:PackageWindow.c.ppc ƒ  PackageWindow.c PackageWindow.h :obj:make.com
  93.     {CCppc} PackageWindow.c -o :obj:PackageWindow.c.ppc
  94.  
  95.  
  96. ### objects folder
  97. :obj:make.com ƒ MakeFile
  98.     ( NewFolder obj || set status 0 ) ∑ dev:null
  99.     Echo "PackageTool 1.3" > :obj:make.com
  100.